﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace md.imi.membranes.objects.Gui
{
    /// <summary>
    ///     The class holds information related to GUI data of the object.
    /// Like position, size, color ... etc
    /// </summary>
    [Serializable]
    public class GuiInfo
    {
        // private GuiInfo guiInfo;

        [XmlIgnore]
        public object Control { get; set; }

        public Size Size { get; set; }

        public Point Location { get; set; }

        public GuiInfo ()
        {
            Size = new Size(10, 10);
            Location = new Point(0, 0);
        }
        /// <summary>
        ///     Initialization contructor
        /// </summary>
        /// <param name="center"></param>
        /// <param name="size"></param>
        public GuiInfo (Point location, Size size )
        {
            Size = size;
            Location = location;
        }

        public GuiInfo(GuiInfo guiInfo)
        {
            // TODO: Complete member initialization
            //this.guiInfo = guiInfo;
            this.Size = new Size(guiInfo.Size.Width, guiInfo.Size.Height);
            this.Location = new Point (guiInfo.Location.X, guiInfo.Location.Y);
        }
    }
}
